package jsyf.oa.facade.crm;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.List;

/**
 * Created by WHH-PC on 2017/12/24.
 */
@Path("/exhibitionService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface ExhibitionFacade {
    @Path("/save")
    String save(String jsonData);

    @Path("/getExihibitionList")
    JSONObject getExihibitionList(JSONObject obj);

    @Path("/getExhibitionListByCompany")
    List<JSONObject> getExhibitionListByCompany(String companyId);

    @Path("/getExhibitionListById")
    JSONObject getExhibitionById(String id);

    @Path("/getById")
    JSONObject getById(String id);

    @Path("/getReportData")
    List<JSONObject> getReportData(String userId, String exhibitionId);

    @Path("/getExhibitionIdByUserId")
    List<JSONObject> getExhibitionIdByUserId(String userId);

    @Path("/getExhibitionSummary")
    List<JSONObject> getExhibitionSummary();

    @Path("/getNomanagerRegion")
    List<JSONObject> getNomanagerRegion(String userId);

    @Path("/getBigCusDepart")
    JSONObject getBigCusDepart(String companyId);

    @Path("/getCompanyExhibitionCount")
    List<JSONObject> getCompanyExhibitionCount();

}
